package com.atzwc.aop.annotation.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(1)

public class ValidateAspect {
           @Pointcut("execution(* com.atzwc.aop.annotation.target.*.*(..))")
        public void zwc1() {

    }

    @Before("zwc1()")
    public void validateBeforeAdvice() {
        System.out.println("ValidateAspect--->前置通知");
    }

}
